package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_equals_2 implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$

    public _jet_equals_2() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_c_choose_1_2 = new TagInfo("c:choose", //$NON-NLS-1$
            1, 2,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_when_2_3 = new TagInfo("c:when", //$NON-NLS-1$
            2, 3,
            new String[] {
                "test", //$NON-NLS-1$
            },
            new String[] {
                "$eachTable/@isRelation='false'", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_3_27 = new TagInfo("c:get", //$NON-NLS-1$
            3, 27,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_3_78 = new TagInfo("c:get", //$NON-NLS-1$
            3, 78,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_4_15 = new TagInfo("c:get", //$NON-NLS-1$
            4, 15,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_25 = new TagInfo("c:get", //$NON-NLS-1$
            6, 25,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_8_4 = new TagInfo("c:get", //$NON-NLS-1$
            8, 4,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_8_63 = new TagInfo("c:get", //$NON-NLS-1$
            8, 63,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_8_117 = new TagInfo("c:get", //$NON-NLS-1$
            8, 117,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_iterate_9_4 = new TagInfo("c:iterate", //$NON-NLS-1$
            9, 4,
            new String[] {
                "select", //$NON-NLS-1$
                "var", //$NON-NLS-1$
            },
            new String[] {
                "$eachTable/physicalPrimaryKeys/column", //$NON-NLS-1$
                "physicalPrimaryKey", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_choose_10_5 = new TagInfo("c:choose", //$NON-NLS-1$
            10, 5,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_when_11_6 = new TagInfo("c:when", //$NON-NLS-1$
            11, 6,
            new String[] {
                "test", //$NON-NLS-1$
            },
            new String[] {
                "$physicalPrimaryKey/@isForeignKey='true'", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_12_30 = new TagInfo("c:get", //$NON-NLS-1$
            12, 30,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_12_84 = new TagInfo("c:get", //$NON-NLS-1$
            12, 84,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($physicalPrimaryKey/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_12_163 = new TagInfo("c:get", //$NON-NLS-1$
            12, 163,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_12_217 = new TagInfo("c:get", //$NON-NLS-1$
            12, 217,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($physicalPrimaryKey/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_otherwise_16_6 = new TagInfo("c:otherwise", //$NON-NLS-1$
            16, 6,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_17_30 = new TagInfo("c:get", //$NON-NLS-1$
            17, 30,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_17_84 = new TagInfo("c:get", //$NON-NLS-1$
            17, 84,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($physicalPrimaryKey/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_17_155 = new TagInfo("c:get", //$NON-NLS-1$
            17, 155,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_17_209 = new TagInfo("c:get", //$NON-NLS-1$
            17, 209,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($physicalPrimaryKey/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_otherwise_26_3 = new TagInfo("c:otherwise", //$NON-NLS-1$
            26, 3,
            new String[] {
            },
            new String[] {
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        out.write("\t");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_choose_1_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "choose", "c:choose", _td_c_choose_1_2); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_choose_1_2.setRuntimeParent(null);
        _jettag_c_choose_1_2.setTagInfo(_td_c_choose_1_2);
        _jettag_c_choose_1_2.doStart(context, out);
        JET2Writer _jettag_c_choose_1_2_saved_out = out;
        while (_jettag_c_choose_1_2.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write(NL);         
            RuntimeTagElement _jettag_c_when_2_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "when", "c:when", _td_c_when_2_3); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_when_2_3.setRuntimeParent(_jettag_c_choose_1_2);
            _jettag_c_when_2_3.setTagInfo(_td_c_when_2_3);
            _jettag_c_when_2_3.doStart(context, out);
            JET2Writer _jettag_c_when_2_3_saved_out = out;
            while (_jettag_c_when_2_3.okToProcessBody()) {
                out = out.newNestedContentWriter();
                out.write("\t\tpublic boolean isEquals(");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_3_27 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_27); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_3_27.setRuntimeParent(_jettag_c_when_2_3);
                _jettag_c_get_3_27.setTagInfo(_td_c_get_3_27);
                _jettag_c_get_3_27.doStart(context, out);
                _jettag_c_get_3_27.doEnd();
                out.write(" ");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_3_78 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_78); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_3_78.setRuntimeParent(_jettag_c_when_2_3);
                _jettag_c_get_3_78.setTagInfo(_td_c_get_3_78);
                _jettag_c_get_3_78.doStart(context, out);
                _jettag_c_get_3_78.doEnd();
                out.write(" , Object obj) {");  //$NON-NLS-1$        
                out.write(NL);         
                out.write("\t\t\tif (obj == ");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_4_15 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_4_15); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_4_15.setRuntimeParent(_jettag_c_when_2_3);
                _jettag_c_get_4_15.setTagInfo(_td_c_get_4_15);
                _jettag_c_get_4_15.doStart(context, out);
                _jettag_c_get_4_15.doEnd();
                out.write(")");  //$NON-NLS-1$        
                out.write(NL);         
                out.write("\t\t\t\treturn true;");  //$NON-NLS-1$        
                out.write(NL);         
                out.write("\t\t\tif (!(obj instanceof ");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_6_25 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_25); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_6_25.setRuntimeParent(_jettag_c_when_2_3);
                _jettag_c_get_6_25.setTagInfo(_td_c_get_6_25);
                _jettag_c_get_6_25.doStart(context, out);
                _jettag_c_get_6_25.doEnd();
                out.write("))");  //$NON-NLS-1$        
                out.write(NL);         
                out.write("\t\t\t\treturn false;");  //$NON-NLS-1$        
                out.write(NL);         
                out.write("\t\t\t");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_8_4 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_8_4); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_8_4.setRuntimeParent(_jettag_c_when_2_3);
                _jettag_c_get_8_4.setTagInfo(_td_c_get_8_4);
                _jettag_c_get_8_4.doStart(context, out);
                _jettag_c_get_8_4.doEnd();
                out.write(" compared");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_8_63 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_8_63); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_8_63.setRuntimeParent(_jettag_c_when_2_3);
                _jettag_c_get_8_63.setTagInfo(_td_c_get_8_63);
                _jettag_c_get_8_63.doStart(context, out);
                _jettag_c_get_8_63.doEnd();
                out.write(" = (");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_8_117 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_8_117); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_8_117.setRuntimeParent(_jettag_c_when_2_3);
                _jettag_c_get_8_117.setTagInfo(_td_c_get_8_117);
                _jettag_c_get_8_117.doStart(context, out);
                _jettag_c_get_8_117.doEnd();
                out.write(") obj;");  //$NON-NLS-1$        
                out.write(NL);         
                RuntimeTagElement _jettag_c_iterate_9_4 = context.getTagFactory().createRuntimeTag(_jetns_c, "iterate", "c:iterate", _td_c_iterate_9_4); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_iterate_9_4.setRuntimeParent(_jettag_c_when_2_3);
                _jettag_c_iterate_9_4.setTagInfo(_td_c_iterate_9_4);
                _jettag_c_iterate_9_4.doStart(context, out);
                while (_jettag_c_iterate_9_4.okToProcessBody()) {
                    RuntimeTagElement _jettag_c_choose_10_5 = context.getTagFactory().createRuntimeTag(_jetns_c, "choose", "c:choose", _td_c_choose_10_5); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_choose_10_5.setRuntimeParent(_jettag_c_iterate_9_4);
                    _jettag_c_choose_10_5.setTagInfo(_td_c_choose_10_5);
                    _jettag_c_choose_10_5.doStart(context, out);
                    JET2Writer _jettag_c_choose_10_5_saved_out = out;
                    while (_jettag_c_choose_10_5.okToProcessBody()) {
                        out = out.newNestedContentWriter();
                        RuntimeTagElement _jettag_c_when_11_6 = context.getTagFactory().createRuntimeTag(_jetns_c, "when", "c:when", _td_c_when_11_6); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_when_11_6.setRuntimeParent(_jettag_c_choose_10_5);
                        _jettag_c_when_11_6.setTagInfo(_td_c_when_11_6);
                        _jettag_c_when_11_6.doStart(context, out);
                        JET2Writer _jettag_c_when_11_6_saved_out = out;
                        while (_jettag_c_when_11_6.okToProcessBody()) {
                            out = out.newNestedContentWriter();
                            out.write("\t\t\t\t\t\tif(!CheckPropertyEqual(");  //$NON-NLS-1$        
                            RuntimeTagElement _jettag_c_get_12_30 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_12_30); //$NON-NLS-1$ //$NON-NLS-2$
                            _jettag_c_get_12_30.setRuntimeParent(_jettag_c_when_11_6);
                            _jettag_c_get_12_30.setTagInfo(_td_c_get_12_30);
                            _jettag_c_get_12_30.doStart(context, out);
                            _jettag_c_get_12_30.doEnd();
                            out.write(".get");  //$NON-NLS-1$        
                            RuntimeTagElement _jettag_c_get_12_84 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_12_84); //$NON-NLS-1$ //$NON-NLS-2$
                            _jettag_c_get_12_84.setRuntimeParent(_jettag_c_when_11_6);
                            _jettag_c_get_12_84.setTagInfo(_td_c_get_12_84);
                            _jettag_c_get_12_84.doStart(context, out);
                            _jettag_c_get_12_84.doEnd();
                            out.write("().getId(), compared");  //$NON-NLS-1$        
                            RuntimeTagElement _jettag_c_get_12_163 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_12_163); //$NON-NLS-1$ //$NON-NLS-2$
                            _jettag_c_get_12_163.setRuntimeParent(_jettag_c_when_11_6);
                            _jettag_c_get_12_163.setTagInfo(_td_c_get_12_163);
                            _jettag_c_get_12_163.doStart(context, out);
                            _jettag_c_get_12_163.doEnd();
                            out.write(".get");  //$NON-NLS-1$        
                            RuntimeTagElement _jettag_c_get_12_217 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_12_217); //$NON-NLS-1$ //$NON-NLS-2$
                            _jettag_c_get_12_217.setRuntimeParent(_jettag_c_when_11_6);
                            _jettag_c_get_12_217.setTagInfo(_td_c_get_12_217);
                            _jettag_c_get_12_217.doStart(context, out);
                            _jettag_c_get_12_217.doEnd();
                            out.write("().getId())) {");  //$NON-NLS-1$        
                            out.write(NL);         
                            out.write("\t\t\t\t\t\t\treturn false;");  //$NON-NLS-1$        
                            out.write(NL);         
                            out.write("\t\t\t\t\t\t}");  //$NON-NLS-1$        
                            out.write(NL);         
                            _jettag_c_when_11_6.handleBodyContent(out);
                        }
                        out = _jettag_c_when_11_6_saved_out;
                        _jettag_c_when_11_6.doEnd();
                        RuntimeTagElement _jettag_c_otherwise_16_6 = context.getTagFactory().createRuntimeTag(_jetns_c, "otherwise", "c:otherwise", _td_c_otherwise_16_6); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_otherwise_16_6.setRuntimeParent(_jettag_c_choose_10_5);
                        _jettag_c_otherwise_16_6.setTagInfo(_td_c_otherwise_16_6);
                        _jettag_c_otherwise_16_6.doStart(context, out);
                        JET2Writer _jettag_c_otherwise_16_6_saved_out = out;
                        while (_jettag_c_otherwise_16_6.okToProcessBody()) {
                            out = out.newNestedContentWriter();
                            out.write("\t\t\t\t\t\tif(!CheckPropertyEqual(");  //$NON-NLS-1$        
                            RuntimeTagElement _jettag_c_get_17_30 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_17_30); //$NON-NLS-1$ //$NON-NLS-2$
                            _jettag_c_get_17_30.setRuntimeParent(_jettag_c_otherwise_16_6);
                            _jettag_c_get_17_30.setTagInfo(_td_c_get_17_30);
                            _jettag_c_get_17_30.doStart(context, out);
                            _jettag_c_get_17_30.doEnd();
                            out.write(".get");  //$NON-NLS-1$        
                            RuntimeTagElement _jettag_c_get_17_84 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_17_84); //$NON-NLS-1$ //$NON-NLS-2$
                            _jettag_c_get_17_84.setRuntimeParent(_jettag_c_otherwise_16_6);
                            _jettag_c_get_17_84.setTagInfo(_td_c_get_17_84);
                            _jettag_c_get_17_84.doStart(context, out);
                            _jettag_c_get_17_84.doEnd();
                            out.write("(), compared");  //$NON-NLS-1$        
                            RuntimeTagElement _jettag_c_get_17_155 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_17_155); //$NON-NLS-1$ //$NON-NLS-2$
                            _jettag_c_get_17_155.setRuntimeParent(_jettag_c_otherwise_16_6);
                            _jettag_c_get_17_155.setTagInfo(_td_c_get_17_155);
                            _jettag_c_get_17_155.doStart(context, out);
                            _jettag_c_get_17_155.doEnd();
                            out.write(".get");  //$NON-NLS-1$        
                            RuntimeTagElement _jettag_c_get_17_209 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_17_209); //$NON-NLS-1$ //$NON-NLS-2$
                            _jettag_c_get_17_209.setRuntimeParent(_jettag_c_otherwise_16_6);
                            _jettag_c_get_17_209.setTagInfo(_td_c_get_17_209);
                            _jettag_c_get_17_209.doStart(context, out);
                            _jettag_c_get_17_209.doEnd();
                            out.write("())) {");  //$NON-NLS-1$        
                            out.write(NL);         
                            out.write("\t\t\t\t\t\t\treturn false;");  //$NON-NLS-1$        
                            out.write(NL);         
                            out.write("\t\t\t\t\t\t}");  //$NON-NLS-1$        
                            out.write(NL);         
                            _jettag_c_otherwise_16_6.handleBodyContent(out);
                        }
                        out = _jettag_c_otherwise_16_6_saved_out;
                        _jettag_c_otherwise_16_6.doEnd();
                        _jettag_c_choose_10_5.handleBodyContent(out);
                    }
                    out = _jettag_c_choose_10_5_saved_out;
                    _jettag_c_choose_10_5.doEnd();
                    _jettag_c_iterate_9_4.handleBodyContent(out);
                }
                _jettag_c_iterate_9_4.doEnd();
                out.write("\t\t\treturn true;");  //$NON-NLS-1$        
                out.write(NL);         
                out.write("\t\t}\t");  //$NON-NLS-1$        
                out.write(NL);         
                _jettag_c_when_2_3.handleBodyContent(out);
            }
            out = _jettag_c_when_2_3_saved_out;
            _jettag_c_when_2_3.doEnd();
            RuntimeTagElement _jettag_c_otherwise_26_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "otherwise", "c:otherwise", _td_c_otherwise_26_3); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_otherwise_26_3.setRuntimeParent(_jettag_c_choose_1_2);
            _jettag_c_otherwise_26_3.setTagInfo(_td_c_otherwise_26_3);
            _jettag_c_otherwise_26_3.doStart(context, out);
            JET2Writer _jettag_c_otherwise_26_3_saved_out = out;
            while (_jettag_c_otherwise_26_3.okToProcessBody()) {
                out = out.newNestedContentWriter();
                out.write("\t\t//暂时用不上");  //$NON-NLS-1$        
                out.write(NL);         
                _jettag_c_otherwise_26_3.handleBodyContent(out);
            }
            out = _jettag_c_otherwise_26_3_saved_out;
            _jettag_c_otherwise_26_3.doEnd();
            _jettag_c_choose_1_2.handleBodyContent(out);
        }
        out = _jettag_c_choose_1_2_saved_out;
        _jettag_c_choose_1_2.doEnd();
        out.write("\t");  //$NON-NLS-1$        
    }
}
